import Myrequest from '@/common/Myrequest.js'

//手机验证码登录
export const phonelogin = (data)=>{
 return	Myrequest({
		URL:'/user/phonelogin',
		Method:'POST',
		Data:data
	})
}
//账号密码登录
export const Usernamelogin = (data)=>{
 return	Myrequest({
		URL:'/user/UsernameLogin',
		Method:'POST',
		Data:data
	})
}


//第三方登录
export const otherlogin = (Data)=>{
 return	Myrequest({
		URL:'/user/otherlogin',
		Method:'POST',
		Data:Data
	})
}
//获取验证码
export const getcode = (data)=>{
	return Myrequest({
		URL:'/user/phoneCaptcha',
		Method:'POST',
		Data:data
	})
}
//绑定手机号
export const bindphone = (data)=>{
	return Myrequest({
		URL:'/user/otherBind',
		Method:'POST',
		Data:data
	})
}